<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:replace="/user/common/shopCommon/CSSandJS1 :: head('title')"></head>
<body>
    <!--/*@thymesVar id="totalMoney" type="java.lang.Float"*/-->
    <header th:replace="/user/common/header :: header(${cartList}, ${totalMoney})"></header>
    <main >
        <div class="page-header-area">
            <div class="container">
                <div class="row">
                    <div class="col-12 text-center">
                        <div class="page-header-content">
                            <h4 class="title mt-0">Your Orders</h4>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-xl-3"></div>
            <div class="col-xl-6">
                <div class="card" th:each="order:${pageInfo.list}">
                    <div class="card-header pb-0">
                        <h4 class="card-title row">
                            <span th:class="col-xl-6">订单号：[[${order.code}]]</span>
                            <span th:class="col-xl-3" th:text="'订单状态：未支付'" th:if="${order.status le 1}"></span>
                            <span th:class="col-xl-3" th:text="'订单状态：未发货'" th:if="${(order.status eq 2) or (order.status eq 4)}"></span>
                            <span th:class="col-xl-3" th:text="'订单状态：已取消'" th:if="${order.status eq 3}"></span>
                            <span th:class="col-xl-3" th:text="'订单状态：已发货'" th:if="${order.status eq 5}"></span>
                            <span th:class="col-xl-3">
                                <button>233</button>>
                            </span>
                        </h4>
                    </div>
                    <div class="card-content">
                        <div class="card-body">
                            <div class="ez-Accordion">
                                <div class="wrapper center-block">
                                    <div class="panel-group snj-panel" id="accordion" role="tablist" aria-multiselectable="true">
                                        <div class="panel panel-default" th:each="item:${order.tOrderItem}">
<!--                                            <div th:class="row"></div>-->
                                            <div class="row panel-heading active" role="tab" id="headingOnea">
                                                <h4 class="panel-title col-xl-12" >
<!--                                                    data-parent="#accordion" -->
                                                    <a role="button" data-toggle="collapse" th:href="@{'#item'+${item.iid}}" aria-expanded="true" aria-controls="collapseOnea">
                                                        <span style="color: white;">[[${item.title}]]</span>
                                                    </a>
                                                </h4>
                                            </div>
                                            <div th:id="${'item'+item.iid}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOnea">
                                                <div class="row panel-body">
                                                    <span th:class="col-xl-8">总计：[[${item.price}]]</span>
                                                    <span th:class="col-xl-4">总数：X [[${item.count}]]</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-3"></div>

        </div>
        <div th:replace="/user/common/shopCommon/CSSandJS1 ::js"></div>
    </main>
    <footer th:replace="/user/common/footer :: footer"></footer>
</body>
</html>